export const formList = [
  {
    key: "dict_id",
    label: "所属分类",
    type: "dict",
    dictId: "1",
    placeholder: "请选择",
  },
  {
    key: "keywords",
    label: "词名",
    placeholder: "请输入",
  },
  {
    key: "import_type",
    label: "来源",
    type: "slot",
    placeholder: "请输入",
  },
  {
    key: "created_at",
    label: "创建时间",
    type: "dateRange",
    showTime: true,
    placeholder: "请选择",
  },
  {
    key: "username",
    label: "操作人",
    placeholder: "请输入",
  },
  {
    key: "updated_at",
    label: "操作时间",
    type: "dateRange",
    showTime: true,
    placeholder: "请选择",
  },
  {
    key: "status",
    type: "slot",
    label: "状态",
    placeholder: "请选择",
  },
];

export const columns = [
  {
    slots: {title: "number"},
    dataIndex: "id",
    width: 80
  },
  {
    title: "所属分类",
    dataIndex: "dict",
    slots: { customRender: "dict" },
  },
  {
    slots: {title: "gjc"},
    dataIndex: "keywords",
  },
  {
    slots: {title: "pm", customRender: "sort_str"},
    dataIndex: "sort_str",
  },
  {
    title: "移动指数",
    dataIndex: "mobility_index",
  },
  {
    title: "来源", // 导入方式
    dataIndex: "import_type",
    slots: { customRender: "import_type" },
  },
  // {
  //   title: "来源引擎",
  //   dataIndex: "source_type",
  // },
  {
    title: "来源网站",
    dataIndex: "source_url",
  },
  {
    slots: {title: "hqsj"},
    dataIndex: "updated_at",
  },
  {
    title: "操作人",
    dataIndex: "user",
    slots: { customRender: "username" },
  },
  {
    slots: {title: "czsj"},
    dataIndex: "created_at",
  },
  {
    title: "状态",
    dataIndex: "listen_status",
    slots: { customRender: "listen_status" },
  },
  {
    title: "操作",
    slots: { customRender: "action" },
    width: 340,
    fixed: 'right'
  },
];
